import store from '../../../../store'
import { changeRotation } from 'assets/js/CesiumFun/CesiumPubFun/modelControl'

// 左旋转
function radarLeft() {
    var searchedRadar = store.getters.searchRadar;
    // 改变角度
    changeRotation(searchedRadar, searchedRadar.asset.extras[0].Position,
         searchedRadar.asset.extras[0].rotation -= 25)
}

// 右旋转
function radarRight() {
    var searchedRadar = store.getters.searchRadar;
    changeRotation(searchedRadar, searchedRadar.asset.extras[0].Position,
         searchedRadar.asset.extras[0].rotation += 25)
}

export {radarLeft, radarRight}